Skip to content

Clean repository after each checkout #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 10, 2021
Merged

Clean repository after each checkout #12

merged 1 commit into from
May 10, 2021

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented May 9, 2021

Previously, when checking out a tag, folders that had only existed in the previous tag (e.g., extras/test when going from [email protected] to [email protected]) were left behind as empty, and would pollute the library archives.

So it's necessary to do a clean on the repository after each checkout to remove any untracked objects.

Reference:
https://pkg.go.dev/github.com/go-git/go-git/v5#Worktree.Clean

@per1234 per1234 added type: bug topic: code Related to content of the project itself labels May 9, 2021
@per1234 per1234 requested review from silvanocerza, umbynos and rsora May 9, 2021 21:51
Previously, when checking out a tag, folders that had only existed in the previous tag (e.g., `extras/test` when going
from [email protected] to [email protected]) were left behind as empty, and would pollute the library
archives.

So it's necessary to do a clean on the repository after each checkout to remove any untracked objects.
@per1234 per1234 merged commit bf9dc3f into arduino:master May 10, 2021
@per1234 per1234 deleted the clean branch May 10, 2021 09:32
@rsora rsora added the type: imperfection Perceived defect in any part of project label Sep 22, 2021
@per1234 per1234 self-assigned this Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants